package com.cyzy.controller;

import cn.hutool.log.Log;
import com.cyzy.domain.dto.ResponseData;
import com.cyzy.domain.query.LogQuery;
import com.cyzy.domain.query.TCultivationQuery;
import com.cyzy.service.CultivationService;
import com.cyzy.service.LogService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
public class LogController {
    @Autowired
    private LogService logService;
    //    驱虫服务
    @PostMapping("/logdata")
    public ResponseData logdata(@RequestBody LogQuery logQuery){
        return logService.logdata(logQuery);
    }
}
